﻿import QtQuick
 import QtQuick.Controls
 import Qt.labs.qmlmodels

 ApplicationWindow {
     visible: true
     width: 640
     height: 480
     title: qsTr("HeaderView")


    TextField {
        id: textfield
        width: 100
        height: 30
    }

    Button {
        text: "开始测试"
        anchors.top: textfield.bottom
        onClicked: {
            timerr.start()
        }
    }

    Timer {
        id: timerr
        interval: 3000
        onTriggered: {
            var count = Number(textfield.text)
            for (var i = 0; i < count; i++) {
                MouseAct.getClickedPos()
                MouseAct.doPressActCurrentPos(1)
            }
        }
    }
 }
